/*
 * @Author: 梁青春
 * @Date: 2025-11-19 16:11:34
 * @LastEditTime: 2025-11-19 19:26:16
 * @LastEditors: 梁青春
 */
import request from '@/utils/request'

// 患者列表
export function getPatientList(query) {
  return request({
    url: '/system/doctor/patientList',
    method: 'get',
    params: query
  })
}

// 诊断列表
export function getDiagnosesList(query) {
  return request({
    url: '/system/doctor/diagnosesList',
    method: 'get',
    params: query
  })
}

// 出院诊断
export function getDischargeDiagnoses(data) {
  return request({
    url: '/system/doctor/dischargeDiagnoses',
    method: 'post',
    data
  })
}

// 出院确认
export function dischargeConfirm(data) {
  return request({
    url: '/system/doctor/dischargeConfirm',
    method: 'post',
    data
  })
}

// 新增诊断
export function addDiagnoses(data) {
  return request({
    url: '/system/diagnoses/add',
    method: 'post',
    data
  })
}

// 疾病目录
export function getDiseaseList(query) {
  return request({
    url: '/system/disease/list/page',
    method: 'get',
    params: query
  })
}
